package com.xbongbong.admin.model;

import com.xbongbong.admin.domain.entity.MirrorChartEntity;
import com.xbongbong.paas.toolbox.wrap.IModel;

import java.util.List;
import java.util.Map;

/**
 * @auther: xingxing.xiao
 * @date: 2020/3/6 006 15:28
 */
public interface MirrorChartModel extends IModel<MirrorChartEntity> {

    @Override
    List<MirrorChartEntity> findEntitys(Map<String, Object> param);

    /**
     * 通过主键删除
     * @author xingxing.xiao
     */
    Integer deleteByKey(Long key, Long mirrorId);

    /**
     * 通过主键获取数据
     * @author xingxing.xiao
     */
    MirrorChartEntity getByKey(Long key, Long mirrorId);

    /**
     * 批量插入数据
     * @param entityList 实体列表
     */
    List<MirrorChartEntity> insertBatch(List<MirrorChartEntity> entityList);
}
